package com.fingard.dsp.bank.reqrespobj.pushinfotobank.detail;

import com.fingard.xml.XElement;

public class ReqPushTransInfoDetail {

    public String tranDate;// 交易日期
    public String tranTime;// 交易时间
    public String payName;// 付方户名
    public String payAct;// 付方账号
    public String payBankName;// 付方银行名称
    public String payBnk;// 付方开户行
    public String payCur;// 付方币种
    public String recName;// 收方户名
    public String recAct;// 收方账号
    public String recBankName;// 收方银行名称
    public String recBnk;// 收方开户行
    public String recCur;// 收方币种
    public String cNAPSCode;// 行号,对应系统开户行的Code
    public String payType;// 交易类型
    public String cDFlag;// 借贷标志 1：借（支出）， 2：贷（收入）
    public String payAmount;// 交易金额 固定2位小数
    public String usage;// 用途
    public String reqSeqID;// 支付请求码
    public String reqReserved1;
    public String reqReserved2;

    public XElement srcXElement;
    public String transType;

    public ReqPushTransInfoDetail(XElement p_xelement, String p_transType, String p_bankCode) throws Exception {
        srcXElement = p_xelement;
        transType = p_transType;

        tranDate = p_xelement.getSingleTextNotNull("TranDate");
        tranTime = p_xelement.getSingleTextNotNull("TranTime");
        payName = p_xelement.getSingleTextNotNull("PayName");
        payAct = p_xelement.getSingleTextNotNull("PayAct");
        payBankName = p_xelement.getSingleTextNotNull("PayBankName");
        payBnk = p_xelement.getSingleTextNotNull("PayBnk");
        payCur = p_xelement.getSingleTextNotNull("PayCur");
        recName = p_xelement.getSingleTextNotNull("RecName");
        recAct = p_xelement.getSingleTextNotNull("RecAct");
        recBankName = p_xelement.getSingleTextNotNull("RecBankName");
        recBnk = p_xelement.getSingleTextNotNull("RecBnk");
        recCur = p_xelement.getSingleTextNotNull("RecCur");
        cNAPSCode = p_xelement.getSingleTextNotNull("CNAPSCode");
        payType = p_xelement.getSingleTextNotNull("PayType");
        cDFlag = p_xelement.getSingleTextNotNull("CDFlag");
        payAmount = p_xelement.getSingleTextNotNull("PayAmount");
        usage = p_xelement.getSingleTextNotNull("Usage");
        reqSeqID = p_xelement.getSingleTextNotNull("ReqSeqID");
        reqReserved1 = p_xelement.getSingleTextNotNull("ReqReserved1");
        reqReserved2 = p_xelement.getSingleTextNotNull("ReqReserved2");
    }


}
